<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<div class="box" style="text-align: left; height: auto;">
	<div id="forum_category">
		<table style="width: 99%" align="center" cellspacing="2">
				<tr>
					<td></td>
					<td width="200px;"><a href="<?php echo url::base(FALSE)?>index.php/forum/forum_category/forumCategoryForm">เพิ่มกลุ่มกระทู้</a></td>
				</tr>
		</table>
		<table style="width: 99%" align="center" cellspacing="2">
			<tbody style="width: 100%" >
			<?php foreach($forum_categories as $fcat){?>
				<tr>
					<td><?=$fcat->id?></td>
					<td><a href="<?php echo url::base(FALSE)?>index.php/forum/forum_question/listResultForumQuestionByCatId?id=<?=$fcat->id?>"><?=$fcat->name?></a></td>
					<td>
						<input type="button" value="edit" width="80px;"> 
						<input type="button" value="delete" width="80px;">
					</td>
				</tr>
				<?php }?>
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript" >
	function setCatId(id){
		alert(id);
	}
</script>